package com.zkthink.ceres.applet.product.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.Data;

/**

@Author cmz
@Date 2024-04-28 14:03
*/
/**
    * 产品分类表
    */
@Data
@TableName(value = "pc_product_category")
public class PcProductCategory {
    /**
     * 分类id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "tenant_code")
    private String tenantCode;

    /**
     * 分类名称
     */
    @TableField(value = "category_name")
    private String categoryName;

    /**
     * 分类图片
     */
    @TableField(value = "category_img")
    private String categoryImg;

    /**
     * 状态：1-删除 0-正常
     */
    @TableField(value = "is_delete")
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;

    /**
     * 描述
     */
    @TableField(value = "brief")
    private String brief;

    /**
     * 创建用户id
     */
    @TableField(value = "create_user")
    private Long createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 最后修改用户id
     */
    @TableField(value = "update_user")
    private Long updateUser;

    /**
     * 最后修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    public static final String COL_ID = "id";

    public static final String COL_TENANT_CODE = "tenant_code";

    public static final String COL_CATEGORY_NAME = "category_name";

    public static final String COL_CATEGORY_IMG = "category_img";

    public static final String COL_STATUS = "status";

    public static final String COL_BRIEF = "brief";

    public static final String COL_CREATE_USER = "create_user";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_USER = "update_user";

    public static final String COL_UPDATE_TIME = "update_time";
}